<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>s三角形的做法</title>
    <style>
        .x{
            width: 0;
            height: 0;
            border: 20px solid transparent;
            border-bottom-color: skyblue;
            cursor: pointer;
            transition: all 0.5s;
        }
        .x:hover{
            width: 0;
            height: 0;
            border: 20px solid transparent;
            border-top-color: skyblue;
        }
        .y{
            width: 0;
            height: 0;
            border: 20px solid transparent;
            border-top-color: skyblue;
        }

        .left{
            width: 0;
            height: 0;
            border: 10px solid transparent;
            border-right-color: skyblue;
        }

        .right{
            width: 0;
            height: 0;
            border: 20px solid transparent;
            border-left-color: skyblue;
        }

        .main{
            width: 0;
            height: 0;
            border: 100px solid transparent;
            border-top-color: skyblue;
            border-left-color: rgb(235, 167, 135);
            border-bottom-color: rgb(50, 10, 158);
            border-right-color: rgb(150, 49, 10);
        }
    </style>
</head>
<body>
    <div class="x"></div>
    <br>
    <div class="y"></div>
    <br>
    <div class="left"></div>
    <br>
    <div class="right"></div>
    <div class="main"></div>
</body>
</html>